import request from "@/utils/request";

interface UserInfo {
    username : string,
    password : string,
    verify : string,
    svgKey : string,
}

let getCaptcha = () =>{
    return request({
        url : "/captcha",
        method : "GET",
    })
}


let doLogin = (data : UserInfo) =>{
    return request({
        url : "/doLogin",
        method : "POST",
        data,
    })
}


export default {
    getCaptcha,
    doLogin,
}